import { Facade } from "../../../libs/lightMVC/core/Facade";
import API from "../../API";
import PlayerModel from "../../model/PlayerModel";

const {ccclass, property} = cc._decorator;

@ccclass
export default class jumpUrl extends cc.Component {

    @property()
    ismanager: boolean = false  

    jumpUrl()
    {
        if(this.ismanager){
            history.go(-100);

            let url = API.my_gallery+Facade.getInstance().getModel(PlayerModel).getPlayer().openid;
            window.location.replace(url);
        }
        else{
            history.go(-100);

            let url = API.baseHostname;
            window.location.replace(url);
        }
       
    }
}
